package com.zt.dev.siteInfoRegister.mapper;

import com.zt.dev.physicalequipment.pojo.PhysicalEquipmentMessage;
import com.zt.dev.siteInfoRegister.pojo.Site;
import com.zt.dev.siteInfoRegister.pojo.SiteUse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SiteMapper {

    void insertSite(Site site);

    int insertPhysicalEquipmentMessage(PhysicalEquipmentMessage physicalEquipmentMessage);

    List<Site> selectAll();

    Site selectById(Integer id);

    int deleteById(Integer id);

    int modifyById(Site site);

    List<Site> selectAllPage(@Param("total") Integer total, @Param("pageSize") Integer pageSize);

    List<SiteUse> getAllSiteUseById(Integer id);

    int insertSiteUse(@Param("length") Integer length, @Param("width") Integer width, @Param("siteId") Integer siteId);

    void deleteUseById(Integer siteId);
}
